home *** CD-ROM | disk | FTP | other *** search
-
- #include <exec/types.h>
- #include <stdio.h>
- #include <linklibs/nisse.h>
-
- /*
- * some of you perhaps know this source (well sort of).
- *
- * it's cursorcontrol from the F-Basic sampledisk.
- *
- */
-
- CRTClrScr
- CRTCursOn
- printf("HELLO ")
- CRTCursDown(1)
- SLEEP FOR 1
- CRTCursUp(1)
- SLEEP FOR 1
- CRTCursLeft(1)
- SLEEP FOR 1
- CRTCursRight(1)
- SLEEP FOR 1
- printf("HELLO AGAIN")
- CRTGotoXY(6,19)
- SLEEP FOR 2
- CRTBell
- printf("screen beep from 6,19")
-
- CRTGotoXY(20,6)
- printf("THIS IS AT 20,6\n")
- SLEEP FOR 2
- CRTGotoXY(1,1)
- printf("THIS IS AT 1,1")
- CRTClrEOL
- SLEEP FOR 2
- CRTGotoXY(4,10)
- FOR I=1 TO 10
- puts("THIS IS A TEST OF THE GREAT SYMBOL")
- NEXT I
- CRTCursRight(5)
- CRTCursUp(5)
- SLEEP FOR 2
- FOR I=1 TO 4
- CRTInsLine
- NEXT I
- CRTCursDown(5)
- SLEEP FOR 2
- CRTDelLine
- SLEEP FOR 2
- CRTClrEOS
- puts("")
- puts("ISNT THAT COOL?")
- CRTFrontPen(2)
- CRTBackPen(3)
- puts("THIS IS NOW A PUMPKIN??")
- SLEEP FOR 2
- CRTClrScr
- CRTCursOff
- puts("THIS IS INVISIBLE CURSOR")
- SLEEP FOR 2
- CRTCursOn
- puts("THIS IS VISIBLE CURSOR")
- SLEEP FOR 2
- FOR I=1 TO 10
- puts("COLORS ARE EXCITING,AREN'T THEY?")
- NEXT I
- SLEEP FOR 2
- CRTStyle(TS_BOLD)
- puts("DO YOU LIKE BOLDFACE?")
- SLEEP FOR 1
- CRTStyle(TS_ITALICS)
- puts("HOW ABOUT ITALIC?")
- SLEEP FOR 1
- CRTStyle(TS_UNDERSCORE)
- puts("HOW ABOUT UNDERSCORE?")
- SLEEP FOR 1
- CRTStyle(TS_INVERSEVIDEO)
- puts("FINALLY, HOW ABOUT INVERSE-VIDEO?")
- SLEEP FOR 1
- CRTFrontPen(1)
- CRTBackPen(0)
- CRTStyle(TS_PLAIN)
- puts("WELL THAT ABOUT DOES IT FOR NOW!")
-
-